<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML>
<html>
  <head>
    <base href="<%=basePath%>">
    <title>无标题</title>
    <link rel="icon" href="/CyanZhong/pics/logo.png">
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<%@ include file="incfiles"%>
	<!-- css -->
	<link rel="stylesheet" type="text/css" href="css/common.css">
	<!-- js -->
	<script type="text/javascript" src="js/nav.js"></script>
	<script type="text/javascript" src="js/common.js"></script>
  </head>
  
  <body>
	<h1>Struts 2完成上传</h1>
	<form action="<%=basePath%>upload-img" method="post" enctype="multipart/form-data">
		<table>
			<tr>
				<td>用户名:</td>
				<td><input type="text" name="username">
				</td>
			</tr>
			<tr>
				<td>上传文件:</td>
				<td><input type="file" name="myFile">
				</td>
			</tr>
			<tr>
				<td><input type="submit" value="上传">
				</td>
				<td><input type="reset">
				</td>
			</tr>
		</table>
	</form>
</body>
</html>
